#include <stdio.h>
#include <stdlib.h>
int main()
{
	FILE* file1=fopen("./text.txt","w");
	int i=0;
	for(i=0;i<10;i++)
	{
		int ret = fputc('x',file1);
	}
	fclose(file1);

	FILE* file2 = fopen("./text.txt","r");
	int ret = fgetc(file2);
	while(ret!=EOF)
	{
		printf("%c ",ret);
		ret = fgetc(file2);
	}
	printf("\n");
	fclose(file2);

	return 0;
}
